/**
 * 点
 */
import * as Cesium from "cesium";
import {uuid} from "../../utils/utils";

/**
 * @description 画点
 * @param position 坐标
 */
export const createRectanglePoint = (position) =>  {
    let point = window.viewer.entities.add({
        id:uuid(),
        position: position,
        point: {
            pixelSize: 20,
            color: Cesium.Color.YELLOW,
            eyeOffset: new Cesium.Cartesian3(0, 0, -300),
            heightReference: Cesium.HeightReference.CLAMP_TO_GROUND
        }
    })
    return point;
}